package com.boot.main.service;

import com.boot.main.entity.CcomUser;
import com.boot.main.response.ResponseData;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface IUserService {
    ResponseData login(String username, String password, HttpServletResponse response);
    ResponseData otherLogin(CcomUser ccomUser, Integer type, HttpServletResponse response);
    ResponseData logout(HttpServletRequest request);
    CcomUser getUserByUserName(String username);
    ResponseData getUsers(Integer page, Integer limit, String mobile, String username);
    ResponseData saveUser(CcomUser user);
    ResponseData saveFrontUser(CcomUser user);
    ResponseData updateUser(CcomUser user);
    ResponseData deleteUser(Long id);
    ResponseData resetPassword(Long id);
    ResponseData updatePassword(Long id, String password, String newPassword);
    ResponseData updateUserMe(Map map, Long id);
}
